

<div class="x-body">
    <div class="layui-row">

    </div>
    <xblock>
        <span class="x-right" style="line-height:40px">共有数据：{$list['count']} 条</span>
    </xblock>
    <table class="layui-table x-admin">
        <thead>
        <tr>
            <th>
                <div class="layui-unselect header layui-form-checkbox" lay-skin="primary"><i class="layui-icon">&#xe605;</i></div>
            </th>
            <th>序号</th>
            <th>UID</th>
            {if condition="$param['type'] eq 1"}
            <th>IP地址</th>
            <th>用户名</th>
            <th>相同IP会员数量</th>
            {else/}
            <th>设备号</th>
            <th>用户名</th>
            <th>相同设备号会员数量</th>
            {/if}

        </thead>
        {notempty name='list.list'}
        <tbody>
        {volist name='list.list' id='vo' key="k"}
        <tr>

            <td>
                <div class="layui-unselect layui-form-checkbox" lay-skin="primary" data-id="{$vo.id}"><i class="layui-icon">&#xe605;</i></div>
            </td>
            <td>{$k}</td>
            <td>{$vo.id}</td>

            {if condition="$param['type'] eq 1"}
            <td> <ob_link><a title="详情" style="color: #0a8cd2"  href="{:url('memberList', array('reg_ip' => $vo['reg_ip']))}" >
                {$vo.reg_ip}
            </a></ob_link></td>
            <td>{$vo.username}</td>
            <td>{$vo.ip_same}</td>

            {else/}
            <td> <ob_link><a title="详情" style="color: #0a8cd2"  href="{:url('memberList', array('uuid' => $vo['uuid']))}" >
                {$vo.uuid}
            </a></ob_link></td>
            <td>{$vo.username}</td>
            <td>{$vo.uuid_same}</td>



            {/if}


            <!--<td class="td-status">-->
                <!--<span class="layui-btn layui-btn-normal layui-btn-mini">已启用</span></td>-->

        </tr>
        {/volist}
        {else/}
        <tbody><tr class="odd"><td colspan="12" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
        {/notempty}

        </tbody>
    </table>
    <div class="page">
        {notempty name='list.list'}   {$list['list']->render()}{/notempty}
    </div>

</div>
<script>
    layui.use('laydate', function(){
        var laydate = layui.laydate;

        //执行一个laydate实例
        laydate.render({
            elem: '#start' //指定元素
        });

        //执行一个laydate实例
        laydate.render({
            elem: '#end' //指定元素
        });
    });




    function setCompany () {

        var data = tableCheck.getData();
        if(data.length==0){
            layer.msg('请选择会员');
            return
        }

        layer.confirm('确认改为公司账号吗？', function (index) {
            //捉到所有被选中的，发异步进行删除
            //监听提交
            var url = "{:url('update_info')}";

            $.post(url, {ids: data, is_company: 1}, function (d) {
                if (d.code == 1) {

                    window.location.reload();

                } else {
                    layer.msg(d.msg);

                }
            }, 'json');


        });
    }

    //导出功能
    $(".export").click(function(){

        window.location.href = searchFormUrl($(".export"));
    });
</script>
<script>var _hmt = _hmt || []; (function() {
    var hm = document.createElement("script");
    hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(hm, s);
})();</script>
</body>

</html>